<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #shui {
      transition: all 0.5s;
    }
  </style>
</head>

<body>

  <div id="box">
    {{text}}
    <br>
    <button @click="btn">走一走</button>
    <!-- <div id="shui" style="width: 100px; height: 100px; transform:translateX(100px) rotateX(180deg)  ;background-color:skyblue; "> -->
    <!-- 我是盒子</div> -->
    <div id="shui"
      :style="{width:`${width}px`, height:`${height}px`,transform:`translateX(${x}px) rotate(${xuanzhuan}deg) scale(${size}) skew(${skew}deg)`,backgroundColor:'skyblue'}">
      我是盒子
    </div>


  </div>

  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.js"></script>
  <script>


    new Vue({
      el: '#box',
      data: {
        text: 'hello Vue',
        width: 100,
        height: 100,
        x: 100,
        xuanzhuan: 90,
        size: 1,
        skew: 30

      },
      methods: {
        btn() {
          this.x += 100
          this.width += 10
          this.height += 10
          this.xuanzhuan += 45
          this.size += 0.1
          this.size -= 0.05
          this.skew += 45
        }
      }
    })

  </script>

</body>

</html>